package org.osoftware.mumi.dao.model;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * The Class PatientPrepaid.
 */
@Entity
@Table(name="patient_prepaid")
public class PatientPrepaid extends BaseObject{

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = -6689536363537542488L;
	
	/** The patient. */
	@ManyToOne
    @JoinColumn(name = "patient_id", updatable = false, insertable = false, nullable=false)
	private Patient patient;
	
	/** The prepaid. */
	@ManyToOne
	@JoinColumn(name = "prepaid_id", updatable = false, insertable = false, nullable=false)
	private Prepaid prepaid;
	
	
	/** The associate number. */
	private String associateNumber;
	
	
	
	/**
	 * Gets the associate number.
	 *
	 * @return the associate number
	 */
	public String getAssociateNumber() {
		return associateNumber;
	}

	/**
	 * Sets the associate number.
	 *
	 * @param associateNumber the new associate number
	 */
	public void setAssociateNumber(String associateNumber) {
		this.associateNumber = associateNumber;
	}

	/**
	 * Gets the patient.
	 *
	 * @return the patient
	 */
	public Patient getPatient() {
		return patient;
	}
	
	/**
	 * Sets the patient.
	 *
	 * @param patient the new patient
	 */
	public void setPatient(Patient patient) {
		this.patient = patient;
	}
	
	/**
	 * Gets the prepaid.
	 *
	 * @return the prepaid
	 */
	public Prepaid getPrepaid() {
		return prepaid;
	}
	
	/**
	 * Sets the prepaid.
	 *
	 * @param prepaid the new prepaid
	 */
	public void setPrepaid(Prepaid prepaid) {
		this.prepaid = prepaid;
	}

	/* (non-Javadoc)
	 * @see org.osoftware.mumi.dao.model.BaseObject#toString()
	 */
	@Override
	public String toString() {
		return "PatientPrepaid [patient=" + patient + ", prepaid=" + prepaid
				+ ", toString()=" + super.toString() + "]";
	}
	
}
